<?php
class sfWidgetFormEmployee extends sfWidgetFormJQueryAutocompleter {

    protected function configure($options = array(), $attributes = array())
    {
    	$this->addOption('url',url_for('employee/ajax_auto_complete'));

        sfContext::getInstance()->getResponse()->addJavascript(
        '/js/jq/jquery.autocomplete.pack.js','last');
        parent::configure($options , $attributes );
        $this->addOption('value_callback',array('EmployeePeer','retrieveByPK'));
    }


    public function render($name, $value = null, $attributes = array(), $errors = array())
    {
        return parent::render($name, $value, $attributes, $errors );
    }


    
    


}